import random
x = 0
y = 0
# n = random.randint(5, 10)
n = int(input("введите количество выстрелов - "))
hits = 0
a = [-7, -8]
b = [5, -8]
c = [5, 5]
d = [-7, 5]
for i in range(n):
  x = random.randint(-100, 100)
  y = random.randint(-100, 100)
  if x >= a[0] and x <= b[0] and x <= c[0] and x >= d[0] and y >= a[1] and y >= b[1] and y <= c[1] and y <= d[1]:
    hits += 1
print('Количество выстрелов:', n)
print('Количество попаданий:', hits)
